<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <script src="https://unpkg.com/react@17/umd/react.development.js"></script>
  <script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"></script>
  <script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>

  <body>
    <div id="root"></div>
    <script type="text/babel">
      // es6方法创建必须引入babel把jsx语法转义为可以执行的js语法 不仅要引入babel.js，而且script标签要加入type="text/babel"
      ReactDOM.render(
        <h1>
          Hello, world!
          <ul>
            <li className="list-li1">11</li>
            <li>22</li>
          </ul>
        </h1>,

        document.getElementById('root')
      ) //第一个容器内的元素，目标父容器也就是根元素
    </script>
  </body>
</html>
